package main

import (
	"fmt"
	"net/http"
	"os"
)

func hello(w http.ResponseWriter, r *http.Request) {
	fmt.Fprintf(w, "<h1>Hello, world!</h1>")
}
func main() {
	http.HandleFunc("/hello", hello)
	err := http.ListenAndServe(":8001", nil)
	if err != nil {
		fmt.Fprintf(os.Stderr, "%v\n", err)
	}
}
